package com.base.service.COUPON;

import com.base.po.coupon_prestore.CouponBrandPrestore;
import com.base.po.coupon_prestore.CouponBrandPrestoreExample;
import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponBrandPrestoreService {
    int countByExample(CouponBrandPrestoreExample example);

    int deleteByExample(CouponBrandPrestoreExample example);

    int deleteByPrimaryKey(String id);

    int insert(CouponBrandPrestore record);

    int insertSelective(CouponBrandPrestore record);

    List<CouponBrandPrestore> selectByExample(CouponBrandPrestoreExample example);

    CouponBrandPrestore selectByPrimaryKey(String id);

    CouponBrandPrestore selectByName(String name);

    int updateByExampleSelective(@Param("record") CouponBrandPrestore record, @Param("example") CouponBrandPrestoreExample example);

    int updateByExample(@Param("record") CouponBrandPrestore record, @Param("example") CouponBrandPrestoreExample example);

    int updateByPrimaryKeySelective(CouponBrandPrestore record);

    int updateByPrimaryKey(CouponBrandPrestore record);

    List<CouponBrandPrestore> selectAll(@Param("page") Page page, @Param("parentId") String parentId, @Param("topId") String topId,
                                        @Param("level") Integer level, @Param("sort") Integer sort);

    int countAll(@Param("parentId") String parentId, @Param("topId") String topId, @Param("level") Integer level);
}